using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class Obj_B_TSJG
    {
        private bool _HasData;
        private string _NOTEID;
        private string _DB2MODIFIED;
        private string _FY;
        private string _SFTJFLAG;
        private string _TSPX;
        private string _LB;
        private string _MC;
        private string _PCFT;
        private string _XH;
        private string _YX;
        private string _JGBS;

        public static string TableName = "B_TSJG";
        public string NOTEID { get { return this._NOTEID; } set { this._NOTEID = value; } }
        public string DB2MODIFIED { get { return this._DB2MODIFIED; } set { this._DB2MODIFIED = value; } }
        public string FY { get { return this._FY; } set { this._FY = value; } }
        public string SFTJFLAG { get { return this._SFTJFLAG; } set { this._SFTJFLAG = value; } }
        public string TSPX { get { return this._TSPX; } set { this._TSPX = value; } }
        public string LB { get { return this._LB; } set { this._LB = value; } }
        public string MC { get { return this._MC; } set { this._MC = value; } }
        public string PCFT { get { return this._PCFT; } set { this._PCFT = value; } }
        public string XH { get { return this._XH; } set { this._XH = value; } }
        public string YX { get { return this._YX; } set { this._YX = value; } }
        public string JGBS { get { return this._JGBS; } set { this._JGBS = value; } }

        public bool HasData { get { return this._HasData; } }
        public Obj_B_TSJG()
        {
        }
        public Obj_B_TSJG(string cNOTEID, string cDB2MODIFIED, string cFY, string cSFTJFLAG, string cTSPX, string cLB, string cMC, string cPCFT, string cXH, string cYX, string cJGBS)
        {
            _HasData = true;
            try
            {
                this._NOTEID = cNOTEID;
                this._DB2MODIFIED = cDB2MODIFIED;
                this._FY = cFY;
                this._SFTJFLAG = cSFTJFLAG;
                this._TSPX = cTSPX;
                this._LB = cLB;
                this._MC = cMC;
                this._PCFT = cPCFT;
                this._XH = cXH;
                this._YX = cYX;
                this._JGBS = cJGBS;

            }
            catch (Exception ex) { _HasData = false; }
        }
        public Obj_B_TSJG(DataRow row)
        {
            _HasData = true;
            try
            {
                this._NOTEID = row["#NOTEID"].ToString();
                this._DB2MODIFIED = row["#DB2MODIFIED"].ToString();
                this._FY = row["FY"].ToString();
                this._SFTJFLAG = row["SFTJFLAG"].ToString();
                this._TSPX = row["TSPX"].ToString();
                this._LB = row["LB"].ToString();
                this._MC = row["MC"].ToString();
                this._PCFT = row["PCFT"].ToString();
                this._XH = row["XH"].ToString();
                this._YX = row["YX"].ToString();
                this._JGBS = row["JGBS"].ToString();

            }
            catch (Exception ex) { _HasData = false; }
        }
    }
}
